#ifndef USERINFO_H
#define USERINFO_H

#include <QObject>

class UserInfo : public QObject
{
    Q_OBJECT
public:
     static UserInfo* getInstance();

     const QString &getUserName() const;
     void setUserName(const QString &newUserName);
     const QString &getUid() const;
     void setUid(const QString &newUid);
     int getFriendNum() const;
     void setFriendNum(int newFriendNum);
     const QString &getUserPic() const;
     void setUserPic(const QString &newUserPic);

private:
    UserInfo();
    static UserInfo instance;
    QString userName;
    QString uid;
    int friendNum;
    QString userPic;

};

#endif // USERINFO_H
